#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<string>
using namespace std;

int main()
{
    string str;
    getline(cin, str);
    size_t found = str.rfind(' ');
    if (found != string::npos)
    {
        cout << str.size() - found - 1;
    }
    else
        cout << str.size();
}

class Solution {
public:
    string addStrings(string num1, string num2) {

        int end1 = num1.size() - 1;
        int end2 = num2.size() - 1;
        int next = 0;
        string str;

        while (end1 >= 0 || end2 >= 0)
        {
            int c1 = end1 >= 0 ? num1[end1] - '0' : 0;
            int c2 = end2 >= 0 ? num2[end2] - '0' : 0;

            int res = c1 + c2 + next;
            int i = res % 10;

            str += (i + '0');
            next = res / 10;
            end1--;
            end2--;
        }

        if (next == 1)
            str += 1 + '0';

        reverse(str.begin(), str.end());
        return str;
    }
};